import Foundation
import SwiftData

// SwiftDataModel
// UserInfo
// 用户信息

@Model
final class UserInfo {
    var nickName: String
    var avatarAddress: String
    var grade: Int
    var campus: String
    var college: String
    var contact: String
    var realNameStage: Int
    var realStudentNumber: String
    var realName: String
    
    init(nickName: String, avatarAddress: String, grade: Int, campus: String, college: String, contact: String, realNameStage: Int, realStudentNumber: String, realName: String) {
        self.nickName = nickName
        self.avatarAddress = avatarAddress
        self.grade = grade
        self.campus = campus
        self.college = college
        self.contact = contact
        self.realNameStage = realNameStage
        self.realStudentNumber = realStudentNumber
        self.realName = realName
    }
}
